package net.url;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class LastModified
{
	public static void main(String[] args)
	{
		try
		{
			URL url = new URL("http://www.baidu.com");
			HttpURLConnection http = (HttpURLConnection) url.openConnection();
			http.setRequestMethod("HEAD");
			System.out.println(http.getLastModified());
		}
		catch (MalformedURLException e)
		{
			e.printStackTrace();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}
}
